package cn.tinlan.shopcoin.app.search;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import java.util.List;

import cn.tinlan.shopcoin.R;

/**
 * Created by Mortimer on 2018/11/26. 18:14
 * 佛祖🙏，永无bug。
 */
public class SeachRecordAdapter extends SearchListAdapter {

    public SeachRecordAdapter(List<String> datas, Context mContext) {
        super(datas, mContext);
    }
    @Override
    protected void bindData(BaseViewHolder holder,final int position) {
        TextView textView= (TextView) holder.getView(R.id.tv_record);
        textView.setText((String) datas.get(position));

        //
//        holder.getView(tv_delete).setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                if (null!=mRvItemOnclickListener){
//                    mRvItemOnclickListener.RvItemOnclick(position);
//                }
//            }
//        });
    }

    @Override
    public int getLayoutId() {
        return R.layout.search_item;
    }


}
